import request from '@/utils/request'

// 查询用户借据延期记录order列表
export function listOrder(query) {
    return request({
        url: '/bizsys/deferredOrder/list',
        method: 'get',
        params: query
    })
}

// 查询用户借据延期记录order详细
export function getOrder(id) {
    return request({
        url: '/bizsys/deferredOrder/' + id,
        method: 'get'
    })
}

// 新增用户借据延期记录order
export function addOrder(data) {
    return request({
        url: '/bizsys/deferredOrder',
        method: 'post',
        data: data
    })
}

// 修改用户借据延期记录order
export function updateOrder(data) {
    return request({
        url: '/bizsys/deferredOrder',
        method: 'put',
        data: data
    })
}

// 删除用户借据延期记录order
export function delOrder(id) {
    return request({
        url: '/bizsys/deferredOrder/' + id,
        method: 'delete'
    })
}

// 导出用户借据延期记录order
export function exportOrder(query) {
    return request({
        url: '/bizsys/deferredOrder/export',
        method: 'get',
        params: query
    })
}
